from rest_framework import serializers
from .models import Message


# 留言序列化器
class MessageModelSerializer(serializers.ModelSerializer):
    class Meta:
        model = Message
        fields = ['user', 'user_message', 'admin_message', 'create_time', 'update_time']
